home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: memory allocation in Visual C++
- Date: Wed, 10 Jan 96 14:48:03 GMT
- Organization: none
- Message-ID: <821285283snz@genesis.demon.co.uk>
- References: <4cvds8$4pt@news.ust.hk>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4cvds8$4pt@news.ust.hk> ee_ckmaa@uxmail.ust.hk "Chan Ka Ming" writes:
-
- >I'm writting a program which deals with a large amount of data. It's a
- >16 bit program. Why I cannot allocate automatic arrays in a
- >function as local variables which in total occupies more than 64k? I've set the
- >memory model to "large" , though.
-
- You may be limited by the overall stack size available to the program.
- Try a DOS/Windows newsgroup to discuss what limitations your particular
- compiler imposes.
-
- Why do you need the arrays to be automatic? You'd probably be better off
- making them static or allocating them from the heap (the c.l.c FAQ has a
- good section on allocating '2D' arrays).
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-